package com.cloudkinto.bo.product;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author long
 */
@Data
public class ProductCategoryUpdateBo {

    @ApiModelProperty(value = "类别id")
    @NotNull(message = "类别id不可为空")
    private Long categoryId;

    @ApiModelProperty(value = "类别名称")
    @NotEmpty(message = "类别名称不可为空")
    private String categoryName;

    @ApiModelProperty(value = "父类别id")
    private Long parentId;
}
